package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderSetmeal;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderService {
    //预约信息提交
    Result order(Map map) throws Exception;

    //根据预约ID查询预约相关信息
    Map findById(Integer id) throws Exception;

    //获取订单信息和套餐信息
    Map<String, Object> findOrderAndSetmeal(OrderSetmeal orderSetmeal);

    //预约订单管理分页查询
    PageResult pageQuery(QueryPageBean queryPageBean);

    //预约订单管理数据回显
    Order findByOrderId(int id);

    //编辑
    void edit(Order order);

    //更改预约状态
    void changeStatus(Order order);

    //删除预约信息
    void delete(int id);
    //移动端预约添加
    Result addOrder(Map<String, String> map)throws Exception;

    //健康干预获取order和setmeal数据
    List<Order> findOrderAndSetmealAll();
    //健康干预查询
    List<Order> findOrderAndSetmealByTime(Date start, Date end, String str);



}
